package com.community.admin.vegetation.validator;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author Aiden
 * @date 2021/11/18
 */
@Data
public class VegetationValid implements Serializable {
    @NotEmpty(message = "网格ID不能为空")
    private String grid_id;
    @Pattern(regexp = "^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$", message = "手机号码格式不正确")
    private String inspection_phone;
}